//
//  Lib.h
//  TripLog
//
//  Created by Administrator on 4/13/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>
#import "Reachability.h"

@interface Lib : NSObject {
    
}
+(BOOL)isIphone;
+(NSString*)dbFilePath;
+(NSString*)docDirPath;
+(void)showAlert:(NSString*)title withMessage:(NSString*)msg;
+(id)getValueOfKey:(NSString*)key;
+(void)setValue:(id)value ofKey:(NSString*)key;

+(void)showLoadingViewOn2:(UIView *)aView withAlert:(NSString *)text;
+(void)removeLoadingViewOn:(UIView *)superView;
+(NSDate*)getThisWeek;
+(NSDate*)getThisMonth;
+(NSDate*)getLastMonth;
+(void)customWebview : (UIWebView *)aWebView;
+(void)showIndicatorViewOn2:(UIView *)aView;
+(void)removeIndcatorViewOn:(UIView *)superView;
+(BOOL)checkInternetConnection;

+(void)saveString:(NSString*)_str forKey:(NSString*)_key;
+(NSString*)getStringForKey:(NSString*)_key;

+(UIImage*)loadingImageFromFile:(NSString*)fileName fileExtension:(NSString*) fileExtension; 
+(NSString*)optimizeResultString:(NSString*)inputString;

+ (UIImage *)imageWithImage:(UIImage *)image scaledToSize:(CGSize)newSize; 

+ (void) insertView:(UIView*) addView intoView:(UIView*)parentView;
+ (void) removeView:(UIView*) rView fromView:(UIView*)parentView;
	
+ (NSString*) stringWithUUID;
+ (NSString*) stringWithUUIDWithoutSeprate;

@end
